package com.ruoyi.finance.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 应付账款对象 t_accounts_payable
 * 
 * @author liuyu
 * @date 2024-10-28
 */
public class AccountsPayable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 关联采购订单编号 */
    @Excel(name = "关联采购订单编号")
    private String purchaseOrderNo;

    /** 应付金额 */
    @Excel(name = "应付金额")
    private BigDecimal amount;

    /** 账款描述, 用于记录其他应收账款的详情 */
    @Excel(name = "账款描述, 用于记录其他应收账款的详情")
    private String description;

    /** 状态：0未支付 1已支付 */
    @Excel(name = "状态：0未支付 1已支付")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPurchaseOrderNo(String purchaseOrderNo)
    {
        this.purchaseOrderNo = purchaseOrderNo;
    }

    public String getPurchaseOrderNo()
    {
        return purchaseOrderNo;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("purchaseOrderNo", getPurchaseOrderNo())
                .append("amount", getAmount())
                .append("description", getDescription())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
